package com.jwell.takegoods.net

import com.google.gson.JsonObject
import io.reactivex.Flowable
import retrofit2.http.Body
import retrofit2.http.Headers
import retrofit2.http.POST

interface ApiStrores {

    /**
     * 登录
     */
    @POST("/api/ZCPdaAccount/LoginAsync")
    fun login(@Body parras: Map<String, String>): Flowable<JsonObject>

    /**
     * 汽运的 提货信息
     */
    @JvmSuppressWildcards
    @POST("/api/ZCPdaWaybill/CarScanCode")
    fun carScanCode(@Body parras: MutableMap<String, String>): Flowable<JsonObject>

    /**
    校驗每條數據是否在正确
     */
    @JvmSuppressWildcards
    @POST("/api/ZCPdaWaybill/ValidateMaterial")
    fun validateMaterial(@Body parras: Map<String, Any>): Flowable<JsonObject>

    /**
     * 汽运 上传数据
     */
    @JvmSuppressWildcards
    @POST("/api/ZCPdaWaybill/CarUpload")
    fun carUpload(@Body parras: Map<String, Any>): Flowable<JsonObject>

    /**
     * 获取火车装车的列表
     */
    @JvmSuppressWildcards
    @POST("/api/ZCPdaWaybill/TrainGetList")
    fun trainGetList(@Body parras: Map<String, Any>): Flowable<JsonObject>

    /**
     * 汽运 上传数据
     */
    @JvmSuppressWildcards
    @POST("/api/ZCPdaWaybill/TrainUpload")
    fun trainUpload(@Body parras: Map<String, Any>): Flowable<JsonObject>
}
